//导入所需要的包
const mysql = require('mysql');
//创建一个连接池
const conn = mysql.createPool({
    host: 'localhost',
    port: 3307,
    user: 'root',
    password: '123456',
    database: 'test',
    timezone: 'GMT%2B8' // 解决时区时间统一的问题
});

//执行一个查询
// conn.query('select * from user_tel', function (error, results, fields) {
//     if (error) throw error;
//     console.log(results);
// });
const a='111';
//导出conn
module.exports = {
conn,
a
}